package edu.tgc.entity.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity
@Table(indexes = { @Index(columnList = "code asc", unique = true) })
public class SysType extends BaseEntity {

    private static final long serialVersionUID = -9148921090517712067L;
    protected String code;
    protected String description;
    protected String name;
    protected Integer sort = 1;

    @Column(name = "code", length = 31)
    public String getCode() {
        return this.code;
    }

    @Column(name = "description", length = 255)
    public String getDescription() {
        return this.description;
    }

    @Column(name = "name", length = 31)
    public String getName() {
        return this.name;
    }

    @Column(name = "sort")
    public Integer getSort() {
        return this.sort;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

}
